.custom-select {
  position: relative;
  width: 100%;
  display: inline-block;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
  font-size: 13px;
  min-height: 28px;
}

.custom-select__trigger:hover {
  border-color: #999;
}

.custom-select--open .custom-select__trigger {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.custom-select__value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2c3e50;
  min-width: 0;
}

.custom-select__value--placeholder {
  color: #999;
}

.custom-select__arrow {
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease;
  color: #666;
  font-size: 10px;
  line-height: 1;
  display: inline-block;
}

.custom-select__arrow--open {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  animation: custom-select-fade-in 0.2s ease;
}

@keyframes custom-select-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select__options {
  padding: 4px 0;
}

.custom-select__option {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 13px;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select__option:hover {
  background-color: #f5f5f5;
}

.custom-select__option--selected {
  background-color: #e3f2fd;
  color: #1976d2;
  font-weight: 500;
}

.custom-select__option--selected:hover {
  background-color: #bbdefb;
}

/* 滚动条样式 - 绿色主题 */
.custom-select__dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select__dropdown::-webkit-scrollbar-track {
  background: #f0f9f0;
  border-radius: 3px;
}

.custom-select__dropdown::-webkit-scrollbar-thumb {
  background: #86efac;
  border-radius: 3px;
  border: 1px solid #d1fae5;
}

.custom-select__dropdown::-webkit-scrollbar-thumb:hover {
  background: #4ade80;
  border-color: #86efac;
}

.custom-select__dropdown::-webkit-scrollbar-thumb:active {
  background: #22c55e;
}

/* Firefox 滚动条样式 - 绿色主题 */
.custom-select__dropdown {
  scrollbar-width: thin;
  scrollbar-color: #86efac #f0f9f0;
}

